<{include file="common/header" /}>
<script src="__JS__/pintuer.js"></script>
</head>
<body>
<div class="panel admin-panel margin-top">
    <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>添加内容</strong></div>
    <div class="body-content">
        <form method="post" class="form-x" action="<{:url('authGroupEdit')}>">
            <input type="hidden" name="id" value="<{$id}>">
            <div class="form-group">
                <div class="label">
                    <label>权限组名称：</label>
                </div>
                <div class="field">
                    <input type="text" class="input w50" name="title"  value="<{$title}>"/>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label>权限节点：</label>
                </div>
                <div class="field" style="padding-top:8px;">
                    <{foreach $rule as $v}>
                    <{$v['title']}>:<input type="checkbox" name="rules[]" id="" value="<{$v['id']}>" <{if in_array($v['id'],$rules)}>checked<{/if}>>
                    <{/foreach}>
                    <div class="tips"></div>
                </div>
            </div>
            <div class="form-group">
                <div class="label">
                    <label></label>
                </div>
                <div class="field">
                    <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>